<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="cloud" tagdir="/WEB-INF/tags/" %>

<!DOCTYPE HTML PUBtdC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/jquery.fancybox.css" />" />
	<script type="text/javascript" src="<c:url value="/scripts/jquery.fancybox.pack.js" />"></script>
</head>

<body>
	<div class="wrapper">
	
		<div id="btnDiv">
			<c:if test="${param.workspace == 'Y'}">
				<a href="<c:url value="/work/openWork.do" />" class="btn">返回</a>
			</c:if>
			<c:if test="${param.workspace != 'Y'}">
				<a href="<c:url value="/pages/bug/bug.jsp" />" class="btn">返回</a>
			</c:if>
			
			<a href="<c:url value="/bug/openOperate.do?op=assign&fromStatus=5&bugId=${param.bugId}" />" class="btn">指定修改</a>
		</div>
		
		<div class="name">${bug.name}</div>
		
		<table class="detail-table">
			<tr>
				<td class="label-td" width="100px">项目状态</td><td width="250px">${bug.statusName}</td>
				<td class="label-td" width="100px">所属项目</td><td width="250px">${bug.projectName}</td>
			</tr>
			<tr class="odd">
				<td class="label-td">责任人</td><td>${bug.owner}</td>
				<td class="label-td">挂起人</td><td><cloud:user userId="${bug.auditorId}" /></td>
			</tr>
			<tr>
				<td class="label-td">严重性</td><td><cloud:item itemField="level" itemId="${bug.level}" /></td>
				<td class="label-td">优先级</td><td><cloud:item itemField="priority" itemId="${bug.priority}" /></td>
			</tr>
			<tr class="odd">
				<td class="label-td">缺陷描述</td><td colspan="3">${bug.intro}</td>
			</tr>
			<tr>
				<td class="label-td">重现步骤</td><td colspan="3">${bug.reappear}</td>
			</tr>
			<tr class="odd">
				<td class="label-td">创建时间</td><td><cloud:time date="${bug.createTime}" /></td>
				<td class="label-td">最近更新时间</td><td><cloud:time date="${bug.modifyTime}" /></td>
			</tr>
		</table>
		
		<cloud:attach attachs="${attachs}" />
		
		<cloud:record records="${records}" />
		
		<cloud:workflow status="${bug.status}" records="${records}" />
	</div>
</body>
</html>
